package com.ruoyi.common.utils.sms;

import com.aliyun.dysmsapi20170525.models.SendSmsResponseBody;
import com.ruoyi.common.utils.sms.bean.Sms;
import org.springframework.stereotype.Component;

/**
 * 短信接口
 *
 * @author yihwang
 * @since 2021/07/19
 **/

@Component
public interface ISmsSender {

    /**
     * 发送短信带参数
     *
     * @param sms 短信对象
     * @return boolean
     */
    SendSmsResponseBody send(Sms sms) throws Exception;
}
